//
//  MYGMyPageModels.swift
//  MYDoctor
//
//  Created by Denny on 2024/4/15.
//

import UIKit
import HandyJSON

struct MYGOperationListModel:HandyJSON {
    var created_at = ""
    var doctor_id = ""
    var end_at = ""
    var id = 0
    var is_patient = 0
    var name = ""
    var patient_id = 0
    var patient_name = ""
    var patient_type = 0
    var start_at = ""
    var status = 0
    var updated_at = ""
    var patient = MYGPatientListModel()
}

struct MYGPatientListModel:HandyJSON {
    var name = ""
    var gender = 0
    var created_at = ""
    var birthday = ""

}


//struct MYGPatientModel:HandyJSON {
//    var name = ""
//    var gender = 0
//    var created_at = ""
//    var
//
//}


struct MYGIndInfoModel:HandyJSON {
    var browse_num = 0
    var comment_count = 0
   var content = ""
    var created_at = ""
    var data_id = 0
    var data_type = ""
    var desc = ""
    var enable = 0
    var from = ""
    var from_img = ""
    var id = 0
    var img = ""
    var is_hot = 0
    var like_count = 0
    var play_num = 0
    var share_count = 0
    var title = ""
    var updated_at = ""
    var is_like = 0
}


struct MYGNewsModel:HandyJSON {
    var browse_num = 1
    var comment = 0
    var content = ""
    var created_at:CLong = 0
    var data_id = 0
    var data_type = ""
    var desc = ""
    var enable = false
    var from = ""
    var from_img = ""
    var id = 0
    var img = ""
    var isLike = false
    var is_hot = false
    var like = 0
    var play_num = 0
    var share = 0
    var title = ""
    var updated_at = ""
}
struct MYGActivesModel:HandyJSON {
    var address = ""
    var avatar = ""
    var background = ""
    var birthday = ""
    var city = ""
    var commitPassword = ""
    var count = ""
    var country = ""
    var countryCode = ""
    var county = ""
    var created_at = ""
    var department = ""
    var email = ""
    var en_address = ""
    var en_city = ""
    var en_county = ""
    var en_department = ""
    var en_email = ""
    var en_gender = ""
    var en_hospital = ""
    var en_level = ""
    var en_name = ""
    var en_province = ""
    var en_title = ""
    var enable = false
    var gender = 0
    var hospital = ""
    var id = 0
    var idNumber = ""
    var identity = ""
    var index = ""
    var is_verify = false
    var last_login_at = ""
    var level = ""
    var modelType = 0
    var name = ""
    var new_index = ""
    var nickname = ""
    var phone = ""
    var phoneNumber = ""
    var pid = 0
    var province = ""
    var purePhoneNumber = ""
    var recommends = ""
    var record = ""
    var reg_id = ""
    var research_role_id = ""
    var status = 0
    var three_elements = 0
    var title = ""
    var type = ""
    var updated_at:CLong = 0
    var user_id = 0
    var zh_city = ""
    var zh_county = ""
    var zh_province = ""

}
struct MYGPatientModel:HandyJSON {
    var avatar = ""
    var name = ""
    var cityString = ""
    var id = 0
    var birthday = ""
    var doctor_id = 0
    var enable = false
    var feedback = ""
    var gender = 1
    var im_user_id = 0
    var phone = ""
    var report_id = ""
}
struct MYGSurgicalDetailModel:HandyJSON {
    var created_at = ""
    var doctor_id = ""
    var end_at = ""
    var patient:MYGPatientModel = MYGPatientModel()
    var id = 0
    var is_patient = 0
    var name = ""
    var patient_id = 0
    var patient_name = ""
    var patient_type = 0
    var start_at = ""
    var status = 0
    var updated_at = ""
    
    var value = MYGSurgicalValueListModel()

}

struct MYGSurgicalValueListModel:HandyJSON {
    var after_operation = MYGSurgicalValueModel()
    var before_operation = MYGSurgicalValueModel()
    var operation_steps = MYGSurgicalValueModel()
    var other = MYGSurgicalValueModel()
}

struct MYGSurgicalValueModel:HandyJSON {
    var media_id = ""
    var text = ""
    var voice = ""
}
/*
 我得患者
 */
struct MYGMyPatientModel:HandyJSON {
    var authorizationLevel = 0
    var caseRange = ""
    var created_at = ""
    var dateEnd = ""
    var dateStart = ""
    var doctor_id = 0
    var enable = false
    var id = 0
    var is_view_patient = false
    var patient = MYGPatientModel()
    var patient_id = 0
    var share_origin_id = 0
    var tags:[String] = []
    var type = 0
    var updated_at = ""
}

struct MYGHomeScheduleListModel:HandyJSON {
    var lists = [MYGHomeScheduleModel]()
    var year = ""
}
struct MYGHomeScheduleModel:HandyJSON {
    var created_at = ""
    var day = ""
    var deleted_at = ""
    var describe = ""
    var end_at = ""
    var from = ""
    var id = 0
   var image = ""
    var is_color = 0
    var is_conflict = 0
    var is_expire = 0
    var is_top = 0
    var is_top_time = 0
    var m_d = ""
    var name = ""
    var patient_id = 0
    var remind_date_10 = 0
    var remind_date_30 = ""
    var remind_date_5 = ""
    var remind_date_60 = ""
    var remind_date_custom1 = ""
    var remind_date_custom2 = ""
    var remind_date_one_day = ""
    var remind_date_time = ""
    var remind_time = ""
    var remind_time_desc = ""
    var remind_time_type = 0
//    var repeat = 0
    var schedule_address = ""
    var schedule_number = ""
    var schedule_site = ""
    var schedule_status = 0
    var schedule_theme = ""
    var schedule_type = ""
    var self_visible = 0
    var sessionId = ""
    var set_date = ""
    var speechId = ""
    var start_at = ""
    var status = 0
    var task = ""
    var time_at = ""
    var time_type = 0
    var type = ""
    var birthday = ""
    var enable = false
    var feedback = ""
    var gender = 1
    var im_user_id = ""
    var phone = ""
    var report_id = ""
}
struct MYGCaseClasmListModel:HandyJSON {
    var department = ""
    var doctor_name = ""
    var hospital = ""
    var id = 0
    var inspection = MYGCaseClasmListInspectionModel()
    var outpatient = MYGCaseClasmListOutpatientModel()
    var medication = MYGCaseClasmListOutpatientModel()
    var operation = MYGCaseClasmListOutpatientModel()
    var examination = MYGCaseClasmListOutpatientModel()
    var patient_id = 0
    var visit_time = ""
    var module = ""
}
struct MYGCaseClasmListInspectionModel:HandyJSON {
    var department = ""
    var doctor = ""
    var hospital = ""
    var img:[String] = []
    var info = ""
    var time = ""
    var zdTime = ""
}
struct MYGCaseClasmListOutpatientModel:HandyJSON {
    var department = ""
    var doctor = ""
    var hospital = ""
    var img:[String] = []
    var info = ""
    var time = ""
    var zdTime = ""

}
struct MYGMYGAcademicIconModel:HandyJSON {
    var imageName = ""
    var title = ""
}

struct MYGMYGAcademicDetailModel:HandyJSON {
    var department = ""
    var doctor = ""
    var hospital = ""
    var img:[String] = []
    var info = ""
    var time = ""
    var zdTime = ""

}

struct MYGMeetList:HandyJSON {
    var created_at = ""
    var deleted_at = ""
    var desc = ""
    var heat = 0
    var id = 0
    var image = ""
    var liveId_id = ""
    var roomEndTime = ""
    var roomStartTime = ""
    var title = ""
    var updated_at = ""
    var video = ""
}


struct MYGMeetDateModel:HandyJSON {
    var day = ""
    var date = ""
    var lunar = ""
    var week = 0
    var year_month = ""
    var isSelected = false
    
    var weekString:String {
        if week == 1 {
            return "周一"
        }
        if week == 2 {
            return "周二"
        }
        if week == 3 {
            return "周三"
        }
        if week == 4 {
            return "周四"
        }
        if week == 5 {
            return "周五"
        }
        if week == 6 {
            return "周六"
        }
        if week == 7 {
            return "周日"
        }
        return ""
    }
}

struct MYGMeetDetailModel:HandyJSON {
    var collect_count = 0
    var created_at = ""
    var deleted_at = ""
    var desc = ""
    var heat = ""
    var id = 0
    var image = ""
    var liveId_id = 0
    var roomEndTime = ""
    var sign_count = 0
    var roomStartTime = ""
    var title = ""
    var updated_at = ""
    var data = [MYGMeetDetailDataModel]()
    var video = ""
    var is_sign = 0
}

struct MYGMeetDetailDataModel:HandyJSON {
    var roomCn = ""
    var liveUrl = ""//直播拉流地址
    var roomEndTime = ""//直播结束时间
    var roomStartTime = ""//直播开始时间
    var videoUrl = ""//直播回放地址
    var session_info = [MYGMeetDetailSessionInfoModel]()
 
}

struct MYGMeetDetailSessionInfoModel:HandyJSON {
    var id = 0
    var sessionCn = ""
    var sessionEn = ""
    var sessionTime = ""
    var videoUrl = ""//直播回放地址
    var speech = [MYGMeetDetailSpeechModel]()
}

struct MYGMeetDetailSpeechModel:HandyJSON {
    var created_at = ""
    var deleted_at = ""
    var expert = [MYGMeetDetailExpertModel]()
    var id = 0
    var room_id = 0
    var speechCn = ""
    var speechEn = ""
    var speechId = ""
    var speechTime = ""
    var updated_at = ""
    var is_collect = 0
    var expertRoleCn = ""
 
}

struct MYGMeetDetailExpertModel:HandyJSON {
    var created_at = ""
    var deleted_at = ""
    var department = ""
    var expertCn = ""
    var expertEn = ""
    var expertId = ""
    var expertRoleCn = ""
    var expertRoleEn = ""
    var hospital = ""
    var id = 0
    var position = ""
    var speech_id = 0
    var type = 2
    var updated_at = ""
}
